Skip to main content

Escrows

Queries all escrows for their chain UID, token, and total balance.

query All_escrows($max: String, $min: String, $skip: Int, $limit: Int) {
router {
all_escrows(max: $max, min: $min, skip: $skip, limit: $limit) {
chain_uid
balance
token
}
}
}

Example

curl --request POST \
--header 'content-type: application/json' \
--url 'https://testnet.api.euclidprotocol.com/graphql' \
--data '{"query":"query All_escrows($max: String, $min: String, $skip: Int, $limit: Int) {\n router {\n all_escrows(max: $max, min: $min, skip: $skip, limit: $limit) {\n chain_uid\n balance\n token\n }\n }\n}","variables":{"max":null,"min":null,"skip":null,"limit":null}}'

Open in Playground

Arguments

NameTypeDescription
maxStringThe upper limit chain UID to return (exclusive).
minStringThe lower limit chain UID to start from (inclusive).
skipIntThe number of results to skip in the response.
limitIntThe maximum number of results to return.

Return Fields

Field NameTypeDescription
chain_uidStringThe UID of the chain that hosts the escrow.
balanceStringThe current amount of tokens held in the escrow.
tokenStringThe tokne Id for the token stored in the escrow.